package com.sense.kukoo.common.repo.sql

import androidx.room.*
import com.sense.kukoo.common.repo.bean.MusicBean

@Dao
interface MusicDao {

    /*@Query("SELECT * FROM musicDB")
    fun getAll(): List<MusicBean>

    @Query("SELECT * FROM musicDB WHERE uid IN (:userIds)")
    fun loadAllByIds(userIds: IntArray): List<MusicBean>

    @Query("SELECT * FROM musicDB WHERE name LIKE :musicName LIMIT 1")
    fun findByName(musicName: String): MusicBean*/

    @Insert
    fun insertAll(vararg music: MusicBean)

    @Update
    fun updateUsers(vararg music: MusicBean)

    @Delete
    fun delete(music: MusicBean)
}